<?php
/**
 * Created by PhpStorm.
 * User: 胥九庆
 * Date: 2023/01/05
 * Time: 9:47
 */
namespace app\api\validate;

use think\Validate;

class CourseComment extends Validate
{
    protected $rule = [
        "course_id" => "require",
        "comment" => "require"
    ];

    protected $message = [
        'course_id.require' => '课程ID不能为空',
        'comment.require' => '请填写评论内容'
    ];

    protected $scene = [
        'add' => ['course_id', 'comment']
    ];
}